-- GENERATED SPELL FOR [Darkwraith] --


function spell0_15657(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_15657', 565, 1)
end

function Sorts_15657(pUnit, Event)
local choix_sorts_15657 = math.random(0, 0)
if choix_sorts_15657 == 0 then
pUnit:RegisterEvent('spell0_15657', 1, 1)
end
end

function mob15657_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15657', math.random(1500, 3000), 1)
end

function mob15657_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15657_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15657_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15657, 1, 'mob15657_Action')
RegisterUnitEvent(15657, 2, 'mob15657_Leave')
RegisterUnitEvent(15657, 3, 'mob15657_Kill')
RegisterUnitEvent(15657, 4, 'mob15657_Die')
